YNQ  YNQ-1.5.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
sycommon.h
Go to the documentation of this file.
1 /*********************************************************************
2  *
3  * Copyright (c) 2021 by Visuality Systems, Ltd.
4  *
5  *************************************************************************
6  * FILE NAME : $Workfile:$
7  * ID : $Header:$
8  * REVISION : $Revision:$
9  *--------------------------------------------------------------------
10  * DESCRIPTION : System common API
11  *--------------------------------------------------------------------
12  * MODULE : NQ
13  * DEPENDENCIES :
14  *************************************************************************/
15 
16 #ifndef _SYCOMMON_H_
17 #define _SYCOMMON_H_
18 
33 typedef struct
34 {
49 
55 #define SY_ATTR_READONLY 0x001
57 #define SY_ATTR_HIDDEN 0x002
59 #define SY_ATTR_SYSTEM 0x004
61 #define SY_ATTR_VOLUME 0x008
63 #define SY_ATTR_DIRECTORY 0x010
65 #define SY_ATTR_ARCHIVE 0x020
67 #define SY_ATTR_DEVICE 0x040
69 #define SY_ATTR_NORMAL 0x080
71 #define SY_ATTR_TEMPORARY 0x100
73 #define SY_ATTR_SPARSE_FILE 0x200
75 #define SY_ATTR_REPARSE_POINT 0x400
77 #define SY_ATTR_COMPRESSED 0x800
79 #define SY_ATTR_OFFLINE 0x1000
81 #define SY_ATTR_NOT_CONTENT_INDEXED 0x2000
83 #define SY_ATTR_ENCRYPTED 0x4000
95 typedef struct
96 {
112 
113 
125 typedef struct
126 {
134 
136 typedef struct
137 {
172 } SYDeviceMode;
173 
174 
175 #define SY_PRINTEROSVERSION_WIN 3
176 
179 typedef struct
180 {
182  const NQ_WCHAR* name;
192  NQ_UINT32 driverVersions[2];
201 
210 #define SY_DEVICEMODE_ORIENTATION 0x00000001
211 #define SY_DEVICEMODE_PAPERSIZE 0x00000002
212 #define SY_DEVICEMODE_PAPERLENGTH 0x00000004
213 #define SY_DEVICEMODE_PAPERWIDTH 0x00000008
214 #define SY_DEVICEMODE_SCALE 0x00000010
215 #define SY_DEVICEMODE_POSITION 0x00000020
216 #define SY_DEVICEMODE_NUP 0x00000040
217 #define SY_DEVICEMODE_COPIES 0x00000080
218 #define SY_DEVICEMODE_DEFAULTSOURCE 0x00000100
219 #define SY_DEVICEMODE_PRINTQUALITY 0x00000400
220 #define SY_DEVICEMODE_COLOR 0x00000800
221 #define SY_DEVICEMODE_DUPLEX 0x00001000
222 #define SY_DEVICEMODE_YRESOLUTION 0x00002000
223 #define SY_DEVICEMODE_TTOPTION 0x00004000
224 #define SY_DEVICEMODE_COLLATE 0x00008000
225 #define SY_DEVICEMODE_FORMNAME 0x00010000
226 #define SY_DEVICEMODE_LOGPIXELS 0x00020000
227 #define SY_DEVICEMODE_BITSPERPEL 0x00040000
228 #define SY_DEVICEMODE_PELWIDTH 0x00080000
229 #define SY_DEVICEMODE_PELHEIGHT 0x00100000
230 #define SY_DEVICEMODE_DISPLAYFLAGS 0x00200000
231 #define SY_DEVICEMODE_DISPLAYFREQUENCY 0x00400000
232 #define SY_DEVICEMODE_ICMMETHOD 0x00800000
233 #define SY_DEVICEMODE_ICMINTENT 0x01000000
234 #define SY_DEVICEMODE_MEDIATYPE 0x02000000
235 #define SY_DEVICEMODE_DITHERTYPE 0x04000000
236 #define SY_DEVICEMODE_PANNINGWIDTH 0x08000000
237 #define SY_DEVICEMODE_PANNINGHEIGHT 0x10000000
238 
245 typedef struct
246 {
278 }
280 
287 #define SY_PRINTERSTATUS_PAUSED 0x00000001
288 #define SY_PRINTERSTATUS_ERROR 0x00000002
289 #define SY_PRINTERSTATUS_PENDINGDELETION 0x00000004
290 #define SY_PRINTERSTATUS_PAPERJAM 0x00000008
291 #define SY_PRINTERSTATUS_PAPEROUT 0x00000010
292 #define SY_PRINTERSTATUS_MANUALFEED 0x00000020
293 #define SY_PRINTERSTATUS_PAPERPROBLEM 0x00000040
294 #define SY_PRINTERSTATUS_OFFLINE 0x00000080
295 #define SY_PRINTERSTATUS_IOACTIVE 0x00000100
296 #define SY_PRINTERSTATUS_BUSY 0x00000200
297 #define SY_PRINTERSTATUS_PRINTING 0x00000400
298 #define SY_PRINTERSTATUS_OUTPUTBINFULL 0x00000800
299 #define SY_PRINTERSTATUS_NOTAVAILABLE 0x00001000
300 #define SY_PRINTERSTATUS_WAITING 0x00002000
301 #define SY_PRINTERSTATUS_PROCESSING 0x00004000
302 #define SY_PRINTERSTATUS_INITIALIZING 0x00008000
303 #define SY_PRINTERSTATUS_WARMINGUP 0x00010000
304 #define SY_PRINTERSTATUS_TONERLOW 0x00020000
305 #define SY_PRINTERSTATUS_NOTONER 0x00040000
306 #define SY_PRINTERSTATUS_PAGEPUNT 0x00080000
307 #define SY_PRINTERSTATUS_USERINTERVENTION 0x00100000
308 #define SY_PRINTERSTATUS_OUTOFMEMORY 0x00200000
309 #define SY_PRINTERSTATUS_DOOROPEN 0x00400000
310 #define SY_PRINTERSTATUS_SERVERUNKNOWN 0x00800000
311 #define SY_PRINTERSTATUS_POWERSAVE 0x01000000
312 
321 #define SY_PRINTERATTR_QUEUED 0x0001
322 #define SY_PRINTERATTR_DIRECT 0x0002
323 #define SY_PRINTERATTR_DEFAULT 0x0004
324 #define SY_PRINTERATTR_SHARED 0x0008
325 #define SY_PRINTERATTR_NETWORK 0x0010
326 #define SY_PRINTERATTR_RESERVED 0x0020 /* */
327 #define SY_PRINTERATTR_LOCAL 0x0040
328 #define SY_PRINTERATTR_DEVQUERY 0x0080
329 #define SY_PRINTERATTR_KEEPJOBS 0x0100
330 #define SY_PRINTERATTR_LIFO 0x0200
331 #define SY_PRINTERATTR_OFFLINE 0x0400
332 #define SY_PRINTERATTR_BIDI 0x0800
333 #define SY_PRINTERATTR_RAWONLY 0x1000
334 #define SY_PRINTERATTR_PUBLISHED 0x2000
335 #define SY_PRINTERATTR_EXPAND 0x4000
336 #define SY_PRINTERATTR_CONTAINER 0x8000
337 #define SY_PRINTERATTR_ICON1 0x10000
338 #define SY_PRINTERATTR_ICON2 0x20000
339 #define SY_PRINTERATTR_ICON3 0x40000
340 #define SY_PRINTERATTR_ICON4 0x80000
341 #define SY_PRINTERATTR_ICON5 0x100000
342 #define SY_PRINTERATTR_ICON6 0x200000
343 #define SY_PRINTERATTR_ICON7 0x400000
344 #define SY_PRINTERATTR_ICON8 0x800000
345 
351 typedef struct
352 {
355  const NQ_WCHAR* pStatus;
368  const void* user;
369 }
371 
378 #define SY_PRINTJOBSTATUS_PAUSED 0x00000001
379 #define SY_PRINTJOBSTATUS_ERROR 0x00000002
380 #define SY_PRINTJOBSTATUS_DELETING 0x00000004
381 #define SY_PRINTJOBSTATUS_SPOOLING 0x00000008
382 #define SY_PRINTJOBSTATUS_PRINTING 0x00000010
383 #define SY_PRINTJOBSTATUS_OFFLINE 0x00000020
384 #define SY_PRINTJOBSTATUS_PAPERPROBLEM 0x00000040
385 #define SY_PRINTJOBSTATUS_PRINTED 0x00000080
386 #define SY_PRINTJOBSTATUS_DELETED 0x00000100
387 #define SY_PRINTJOBSTATUS_BLOCKED 0x00000200
388 #define SY_PRINTJOBSTATUS_USERINTERVENTION 0x00000400
389 #define SY_PRINTJOBSTATUS_RESTART 0x00000800
399 #define SY_PRINTJOB_MINPRIORITY 1
400 #define SY_PRINTJOB_MAXPRIORITY 99
401 #define SY_PRINTJOB_DEFPRIORITY 1
411 #define SY_PRINTERCONTROL_PAUSE 1
412 #define SY_PRINTERCONTROL_RESUME 2
413 #define SY_PRINTERCONTROL_PURGE 3
414 #define SY_PRINTERCONTROL_SETSTATUS 4
424 #define SY_PRINTJOBCOM_PAUSE 1
425 #define SY_PRINTJOBCOM_RESUME 2
426 #define SY_PRINTJOBCOM_CANCEL 3
427 #define SY_PRINTJOBCOM_RESTART 4
428 #define SY_PRINTJOBCOM_DELETE 5
429 #define SY_PRINTJOBCOM_SENDTOPRINTER 6
430 #define SY_PRINTJOBCOM_LASTPAGEEJECTED 7
440 typedef struct
441 {
444 }
446 
449 typedef struct
450 {
455 }
457 
460 typedef struct
461 {
463  const NQ_WCHAR* name;
467 }
469 
477 #define SY_PRINTFORMFLAG_USER 0x00000000
478 #define SY_PRINTFORMFLAG_BUILTIN 0x00000001
479 #define SY_PRINTFORMFLAG_PRINTER 0x00000002
483 #endif /* _SYCOMMON_H_ */
NQ_UINT32 securityDescriptorLength
Definition: sycommon.h:367
NQ_UINT32 startTime
Definition: sycommon.h:260
NQ_UINT16 printQuality
Definition: sycommon.h:151
Definition: sycommon.h:449
NQ_UINT32 fileSystemIdLow
Definition: sycommon.h:101
NQ_UINT32 sessionCounter
Definition: sycommon.h:270
NQ_UINT32 defaultPriority
Definition: sycommon.h:259
NQ_UINT32 attributes
Definition: sycommon.h:197
NQ_UINT16 paperWidth
Definition: sycommon.h:147
NQ_WCHAR * comment
Definition: sycommon.h:250
NQ_UINT32 priority
Definition: sycommon.h:258
NQ_UINT32 id
Definition: sycommon.h:353
NQ_TIME creationTime
Definition: sycommon.h:35
NQ_UINT16 duplex
Definition: sycommon.h:153
NQ_UINT32 pagesPrinted
Definition: sycommon.h:360
NQ_UINT32 creationTimeHigh
Definition: sycommon.h:100
NQ_UINT32 freeUnitsHigh
Definition: sycommon.h:110
NQ_UINT32 pelsHeight
Definition: sycommon.h:161
NQ_UINT32 priority
Definition: sycommon.h:357
NQ_UINT16 hour
Definition: sycommon.h:129
NQ_UINT32 icmIntent
Definition: sycommon.h:165
NQ_UINT16 size
Definition: sycommon.h:140
NQ_UINT32 totalPages
Definition: sycommon.h:267
NQ_UINT32 fileSystemIdHigh
Definition: sycommon.h:102
const NQ_WCHAR * name
Definition: sycommon.h:463
NQ_UINT16 min
Definition: sycommon.h:128
NQ_UINT32 displayFlags
Definition: sycommon.h:162
const NQ_WCHAR * driverPath
Definition: sycommon.h:183
const NQ_WCHAR ** dependentFiles
Definition: sycommon.h:187
NQ_WCHAR * portName
Definition: sycommon.h:248
NQ_UINT32 totalUnitsLow
Definition: sycommon.h:107
NQ_UINT32 submitTime
Definition: sycommon.h:361
NQ_UINT16 yResolution
Definition: sycommon.h:154
NQ_UINT32 securityDescriptorLength
Definition: sycommon.h:277
NQ_UINT32 pelsWidth
Definition: sycommon.h:160
Definition: sycommon.h:245
const NQ_WCHAR * manufacturer
Definition: sycommon.h:193
Definition: sycommon.h:95
NQ_UINT16 sec
Definition: sycommon.h:127
NQ_UINT16 month
Definition: sycommon.h:131
NQ_UINT32 left
Definition: sycommon.h:451
NQ_UINT32 creationTimeLow
Definition: sycommon.h:99
NQ_UINT32 flags
Definition: sycommon.h:464
NQ_UINT32 mediaType
Definition: sycommon.h:166
NQ_UINT16 color
Definition: sycommon.h:152
const NQ_WCHAR * hardwareID
Definition: sycommon.h:195
const NQ_WCHAR ** previousNames
Definition: sycommon.h:190
NQ_UINT32 panningHeight
Definition: sycommon.h:171
NQ_UINT32 fields
Definition: sycommon.h:143
const NQ_WCHAR * formName
Definition: sycommon.h:157
const NQ_BYTE * driverExtraData
Definition: sycommon.h:142
NQ_UINT32 cJobs
Definition: sycommon.h:263
NQ_UINT32 icmMethod
Definition: sycommon.h:164
Definition: sycommon.h:125
NQ_UINT32 width
Definition: sycommon.h:442
NQ_UINT32 sizeHigh
Definition: sycommon.h:40
Definition: sycommon.h:136
Definition: sycommon.h:440
NQ_UINT32 totalBytes
Definition: sycommon.h:265
NQ_UINT32 configVersion
Definition: sycommon.h:198
NQ_UINT32 top
Definition: sycommon.h:452
NQ_UINT32 blockSizeLow
Definition: sycommon.h:103
NQ_UINT16 majorVersion
Definition: sycommon.h:268
NQ_UINT16 orientation
Definition: sycommon.h:144
NQ_UINT32 right
Definition: sycommon.h:453
NQ_UINT32 displayFrequency
Definition: sycommon.h:163
NQ_UINT32 fileIdLow
Definition: sycommon.h:46
NQ_UINT32 serialNumberHigh
Definition: sycommon.h:98
NQ_UINT32 cSetPrinter
Definition: sycommon.h:272
NQ_TIME lastChangeTime
Definition: sycommon.h:36
const NQ_WCHAR * monitorName
Definition: sycommon.h:188
NQ_WCHAR * location
Definition: sycommon.h:251
NQ_UINT16 NQ_WCHAR
Definition: udapi.h:45
const NQ_WCHAR * name
Definition: sycommon.h:182
NQ_UINT32 totalUnitsHigh
Definition: sycommon.h:108
unsigned char NQ_BYTE
Definition: udapi.h:27
unsigned short NQ_UINT16
Definition: udapi.h:39
Definition: sycommon.h:179
NQ_WCHAR * printProcessor
Definition: sycommon.h:254
NQ_TIME lastAccessTime
Definition: sycommon.h:37
Definition: sycommon.h:33
NQ_UINT32 time
Definition: sycommon.h:364
NQ_UINT32 osVersion
Definition: sycommon.h:181
const NQ_WCHAR * helpFile
Definition: sycommon.h:186
NQ_UINT32 driverDate
Definition: sycommon.h:191
NQ_UINT32 blocksPerUnitLow
Definition: sycommon.h:105
const NQ_WCHAR * configFile
Definition: sycommon.h:185
NQ_UINT16 scale
Definition: sycommon.h:148
const NQ_WCHAR * dataFile
Definition: sycommon.h:184
NQ_UINT16 ttOption
Definition: sycommon.h:155
NQ_UINT32 untilTime
Definition: sycommon.h:363
Definition: sycommon.h:351
NQ_UINT32 bitsPerPel
Definition: sycommon.h:159
NQ_UINT16 collate
Definition: sycommon.h:156
NQ_UINT16 driverExtraLength
Definition: sycommon.h:141
NQ_UINT16 driverVersion
Definition: sycommon.h:139
NQ_UINT32 reserved2
Definition: sycommon.h:169
NQ_UINT32 totalJobs
Definition: sycommon.h:264
SYPrintSize size
Definition: sycommon.h:465
NQ_UINT32 size
Definition: sycommon.h:365
NQ_UINT32 flags
Definition: sycommon.h:247
NQ_UINT32 numLinks
Definition: sycommon.h:45
NQ_UINT32 globalCounter
Definition: sycommon.h:266
Definition: udapi.h:69
NQ_UINT32 attributes
Definition: sycommon.h:257
NQ_BYTE * securityDescriptor
Definition: sycommon.h:366
NQ_UINT32 freeUnitsLow
Definition: sycommon.h:109
NQ_UINT32 startTime
Definition: sycommon.h:362
NQ_UINT32 position
Definition: sycommon.h:358
NQ_UINT32 id
Definition: sycommon.h:462
Definition: sycommon.h:460
const NQ_WCHAR * manufacturerURL
Definition: sycommon.h:194
NQ_UINT32 status
Definition: sycommon.h:356
NQ_UINT32 allocSizeLow
Definition: sycommon.h:41
NQ_UINT32 blocksPerUnitHigh
Definition: sycommon.h:106
NQ_UINT16 defaultSource
Definition: sycommon.h:150
NQ_UINT32 serialNumberLow
Definition: sycommon.h:97
const NQ_WCHAR * pStatus
Definition: sycommon.h:355
NQ_UINT32 status
Definition: sycommon.h:262
NQ_WCHAR * driverName
Definition: sycommon.h:249
NQ_UINT32 driverVersion
Definition: sycommon.h:199
NQ_UINT32 blockSizeHigh
Definition: sycommon.h:104
NQ_UINT32 isDeleted
Definition: sycommon.h:44
NQ_UINT16 buildVersion
Definition: sycommon.h:269
const NQ_WCHAR * provider
Definition: sycommon.h:196
NQ_UINT16 year
Definition: sycommon.h:132
NQ_UINT32 sizeLow
Definition: sycommon.h:39
NQ_UINT16 paperSize
Definition: sycommon.h:145
NQ_UINT32 bottom
Definition: sycommon.h:454
NQ_UINT32 transmissionRetryTimeout
Definition: sycommon.h:275
SYPrintRect imageableArea
Definition: sycommon.h:466
NQ_UINT32 deviceNotSelectedTimeout
Definition: sycommon.h:274
SYDeviceMode devMode
Definition: sycommon.h:252
NQ_UINT32 averagePpm
Definition: sycommon.h:273
NQ_UINT32 allocSizeHigh
Definition: sycommon.h:42
NQ_UINT16 logPixels
Definition: sycommon.h:158
NQ_UINT32 ditherType
Definition: sycommon.h:167
NQ_UINT32 panningWidth
Definition: sycommon.h:170
NQ_UINT32 reserved1
Definition: sycommon.h:168
unsigned long NQ_UINT32
Definition: udapi.h:43
NQ_UINT32 untilTime
Definition: sycommon.h:261
NQ_UINT32 totalPages
Definition: sycommon.h:359
const void * user
Definition: sycommon.h:368
NQ_UINT16 paperLength
Definition: sycommon.h:146
NQ_UINT16 copies
Definition: sycommon.h:149
NQ_UINT16 specVersion
Definition: sycommon.h:138
NQ_TIME lastWriteTime
Definition: sycommon.h:38
NQ_UINT32 attributes
Definition: sycommon.h:43
NQ_UINT32 height
Definition: sycommon.h:443
const NQ_WCHAR * documentName
Definition: sycommon.h:354
NQ_WCHAR * dataType
Definition: sycommon.h:255
NQ_WCHAR * parameters
Definition: sycommon.h:256
NQ_UINT16 day
Definition: sycommon.h:130
NQ_UINT32 fileIdHigh
Definition: sycommon.h:47
const NQ_WCHAR * defaultDataType
Definition: sycommon.h:189
NQ_BYTE * securityDescriptor
Definition: sycommon.h:276
NQ_UINT32 printerErrors
Definition: sycommon.h:271
NQ_WCHAR * sepFile
Definition: sycommon.h:253